<template>
  <div class="forbidden">
    <div class="forbidden-content">
      <h1 class="error-code">403</h1>
      <p class="message">抱歉，您没有权限访问此页面。</p>
      <router-link to="/" class="back-button">返回首页</router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Forbidden'
}
</script>

<style scoped>
.forbidden {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f9fafb;
}

.forbidden-content {
  text-align: center;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-code {
  font-size: 4rem;
  font-weight: bold;
  color: #e74c3c;
}

.message {
  font-size: 1.2rem;
  color: #555;
  margin: 1rem 0;
}

.back-button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: #3498db;
  color: white;
  font-size: 1.1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #2980b9;
}
</style>
